package i18ntool.utils;

import iceworld.fernado.utils.FileUtils;

import java.io.IOException;
import java.util.Map;

public class I18ntoolFileUtils {

	private I18ntoolFileUtils() {
	}
	
	/**
	 * This is used InputStream to read
	 * @param filePath 
	 * @return
	 * @throws IOException
	 */
	public static Map<String, String> loadPropertiesToMap(final String filePath, 
			final int index) throws IOException {
		return FileUtils.loadPropertiesToMap(filePath, MessageAssistant.getInstance().getMessageCharsetNames()[index], index);
	}
}
